package com.components.base.utils

import com.blankj.utilcode.util.BarUtils
import com.blankj.utilcode.util.ConvertUtils
import com.blankj.utilcode.util.ScreenUtils

/*dp转px**/
val Int.dpx get() = ConvertUtils.dp2px(this.toFloat())

/**sp转px*/
val Int.spx get() = ConvertUtils.sp2px(this.toFloat())

/**获取屏幕的宽度px*/
val screenWidth get() = ScreenUtils.getScreenWidth()

/**获取状态栏高度px*/
val statusBarHeight get() = BarUtils.getStatusBarHeight()